
<form class="layui-form pt10" action="{:url()}" method="post" id="editForm">
    <div class="layui-form-item">
        <label class="layui-form-label">顾问</label>
        <div class="layui-input-inline">
            <select name="adviser_id" class="layui-input field-adviser_id" lay-verify="required" lay-search="">
              <option value="">直接选择或搜索选择</option>
              {$advisers|raw}
            </select>
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">美容师</label>
        <div class="layui-input-inline">
            <select name="technician_id" class="layui-input field-technician_id" lay-verify="required" lay-search="">
              <option value="">直接选择或搜索选择</option>
              {$technicians|raw}
            </select>
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">产品</label>
        <div class="layui-input-inline">
            <select name="product_id" class="layui-input field-product_id" lay-verify="required" lay-search="">
              <option value="">直接选择或搜索选择</option>
              {$products|raw}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">数量</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-num" name="num" value="1" lay-verify="number" autocomplete="off" ">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">原价</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input field-price1" name="price1" readonly value="0.00" lay-verify="number" autocomplete="off" ">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">售价</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input field-price2" name="price2" value="0.00" lay-verify="number" autocomplete="off" ">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">收款账户</label>
        <div class="layui-input-inline">
            <select name="account_id" class="layui-input field-account_id" lay-verify="required" lay-search="">
              <option value="">直接选择或搜索选择</option>
              {$accounts|raw}
            </select>
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">仓库</label>
        <div class="layui-input-inline">
            <select name="warehouse_id" class="layui-input field-warehouse_id" lay-verify="required" lay-search="">
              <option value="">直接选择或搜索选择</option>
              {$warehouses|raw}
            </select>
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-bak" name="bak" lay-verify="" autocomplete="off" ">
        </div>
    </div>

    <input type="hidden" class="field-sn" name="sn" value="{$sn}">
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" class="field-id" name="id">
        </div>
    </div>
    <div class="pop-bottom-bar hisi-footer">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: true}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>
<!-- <script src="__PUBLIC_JS__/layui/xm-select.js" charset="utf-8"></script> -->
{include file="system@block/layui" /}

<script>

layui.use(['func','laydate'], function() {
    //常规用法
    var laydate = layui.laydate;
    laydate.render({
          elem: '#date',
          trigger:'click',
          type:'datetime'
        });


    layui.func.assign({:json_encode($formData)});


});
</script>
